const {
	$U_UserInfo,
} = require('@utils/storage')

module.exports = {
	LOG_IN(state, userInfo) {
		$U_UserInfo(userInfo)
		state.userInfo = userInfo;
	},

	LOG_OUT(state) {
		$U_UserInfo(null)
		state.userInfo = null;
	},

	NODE_LIST(state, nodeList) {
		state.nodeList = nodeList
	},

	LOC_PAGE(state, type) {
		state.page = type
	},

};